#{extends 'main.html' /}
#{set title:'Série' /}


<div class="form">	    
	        
	    *{ BOOK }*
	   	#{if collection != null}
	   		#{paginate.controls items:collection.books /} 
		    #{paginate.summary items:collection.books /}
		    <table class="table_gridview">
		    	<caption>${collection.title}</caption>
			    #{paginate.list items:collection.books, as:'book'} 
		    		<tr class="${book_parity}">
		    			<td>${book.volume}</td>
		    			<td>${book.title}</td>
		    		</tr>
			    #{/paginate.list}
			</table>
	   	#{/if}
	   	
	   	*{ CARTOON }*
	    #{if collection2 != null}
	   		#{paginate.controls items:collection2.cartoons /} 
		    #{paginate.summary items:collection2.cartoons /}
		    <table class="table_gridview">
		    	<caption>${collection2.title}</caption>
			    #{paginate.list items:collection2.cartoons, as:'book'} 
		    		<tr class="${book_parity}">
		    			<td>${book.volume}</td>
		    			<td>${book.title}</td>
		    		</tr>
			    #{/paginate.list}
			</table>
	    #{/if}
	    
	    
</div>
	    